package demo7;
/*
键盘输入两个数求和
 */
import java.util.Scanner;

public class TestScannerSUM {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入两个数：");

        int a = sc.nextInt();
        int b =sc.nextInt();

        int sum = a + b;

        System.out.println("两个数的和为："+sum);
    }
}
